package htdi.act.usrmgr.endpoints;

import act.aaa.LoginUser;
import act.controller.Controller;
import act.controller.annotation.UrlContext;
import htdi.act.usrmgr.models.User;
import org.osgl.mvc.annotation.GetAction;

@UrlContext("/api/v1")
public class ServiceBase extends Controller.Util {
    @LoginUser
    protected User me;

    @GetAction("my/profile")
    public User myProfile() {
        return me;
    }
}
